package org.shan.db;

import org.shan.db.enerator.SqlGenerator;

import java.io.File;
import java.io.Serializable;

import javax.persistence.Id;
import javax.persistence.Table;

import lombok.Data;

@Table(name = "Company")
@Data
public class Company implements Serializable{

    @Id
    private Integer id;

    private Long time;

    private Integer age;

    private String address;

    private byte[] bytes;

    public static void main(String[] args) {
        SqlGenerator.generateSql(Company.class.getName(),
                "Company", "id", new File("Company.sql").getAbsolutePath());
    }
}
